﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data.Objects;
using System.Data.Entity.Infrastructure;

namespace DNA.Mvc.Community.Data.Entity
{
    public class ForumDb : DbContext
    {
        public ForumDb() : base("ForumDB") { }

        public ForumDb(string nameOrConnectionString) : base(nameOrConnectionString) { }

        public DbSet<Forum> Forums { get; set; }

        public DbSet<Attachment> Attachments { get; set; }

        public DbSet<Post> Posts { get; set; }

        public DbSet<Thread> Threads { get; set; }

        public DbSet<Rank> Ranks { get; set; }
    }
}
